<html>

<head>
  <title>Express</title>
  <link rel="stylesheet" href="/stylesheets/style.css">

</head>

<body>
  <div id="app">
    <router-view></router-view>
  </div>

</body>
<script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
<script src="https://unpkg.com/vue-router/dist/vue-router.js"></script>
<script src="https://cdn.jsdelivr.net/npm/axios/dist/axios.min.js"></script>

<!-- <script src="../node_modules/vue-router/dist/vue-router.js"></script> -->
<script>

  let routes = [
    {
      path: "/",
      /* 懒加载 */
      component: () => import("./javascripts/login.js")
    },
    {
      path: "/home",
      component: () => import("./javascripts/home.js")
    }
  ];
  let router = new VueRouter({
    routes,
  })
  let vm = new Vue({
    el: "#app",
    router,
  })
</script>

</html>